package com.example.natatorium_management.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.natatorium_management.entity.Gymnasium;
import com.example.natatorium_management.result.restful.R;

public interface GymnasiumService {
    R<IPage<Gymnasium>> QueryPage(int current, int size);

    R<Gymnasium> addGymnasium(Gymnasium gymnasium);
    R<Gymnasium> findGymnasiumById(int gymnasiumId);
    R<Gymnasium> updateGymnasium(Gymnasium gymnasium);

    R<IPage<Gymnasium>> findGymnasium(Gymnasium gymnasium,int current,int size);

    R<Gymnasium> deleteGymnasiumById(int id);
}
